/*    */ package system.staros.cblock2;
/*    */ 
/*    */ import java.io.PrintStream;
/*    */ import system.staros.cblock1.Message;
/*    */ import system.staros.cblock1.Task;
/*    */ 
/*    */ public class Console extends Task
/*    */ {
/*    */   public void handleMessage()
/*    */   {
/* 16 */     Message localMessage = getMessage(getPID());
/* 17 */     if (localMessage != null) {
/* 18 */       localMessage.locked = true;
/* 19 */       switch (localMessage.ID) {
/*    */       case 100:
/* 21 */         if (localMessage.data != null)
/* 22 */           System.out.write(localMessage.data, 0, localMessage.data.length); break;
/*    */       case 1:
/* 25 */         this.running = false;
/* 26 */         break;
/*    */       }
/*    */ 
/* 30 */       localMessage.handled = true;
/*    */     }
/*    */   }
/*    */ 
/*    */   public void run() {
/* 35 */     int i = 1;
/* 36 */     byte[] arrayOfByte = new byte[128];
/*    */ 
/* 41 */     while (i != 0)
/*    */     {
/* 43 */       handleMessage();
/*    */     }
/*    */ 
/* 46 */     System.out.println("Console stopped.");
/*    */   }
/*    */ }

/* Location:           D:\Марк\!IMPORTANT\staros\archive\version-2.260.zip
 * Qualified Name:     system.staros.cblock2.Console
 * JD-Core Version:    0.6.1
 */